package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Examination;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * []
 *
 * @author : [mhr]
 * @version : [v1.0]
 * @createTime : [2025/2/11 16:23]
 */
@Mapper
public interface ExaminationDao {

    // 插入体检信息
    void insertExamination(Examination examination);

    /**
     * 分页查询所有或条件查询体检预约信息
     */
    public Page<Examination> findPageOrCondition(String queryString);

    // 更新体检信息
    void updateExamination(Examination examination);

    // 根据Id删除体检信息
    void deleteExaminationById(int id);

    // 根据Id查询体检信息
    Examination findExaminationById(Integer id);

    List<Examination> findExaminationByTelephone(String telephone);
}